import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-page02',
  templateUrl: './page02.component.html',
  styleUrls: ['./page02.component.css']
})
export class Page02Component implements OnInit {

    gut=10;
    mg=2;
    index=0;
    constructor() { }

    ngOnInit() {
    }


    handleClick(){
        this.index++;

        if(this.index%2){
            this.gut++
        }else{
          this.mg++
        }

    }

}
